//
//  WuLIiuViewController.m
//  BigJoy
//
//  Created by Rowling on 2017/7/17.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "WuLIiuViewController.h"
#import "WuLiuCell.h"
@interface WuLIiuViewController ()

@end

@implementation WuLIiuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUI];
}

-(void)setUI {
    self.title = @"查看物流";
    [self.view addSubview:self.XMTableview];
    self.XMTableview.estimatedRowHeight = 50;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 10;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    WuLiuCell * cell = [WuLiuCell cellWithTalbelView:tableView];
    if (indexPath.row == 0) {
        cell.contentLable.textColor = XMColor(245, 70, 70);
        cell.yuanVIew.backgroundColor = XMColor(245, 70, 70);
    }else {
        cell.contentLable.textColor = [UIColor colorForHex:@"333333"];
        cell.yuanVIew.backgroundColor = XMColor(221, 221, 221);
    }
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return UITableViewAutomaticDimension;
}






@end
